package com.nineclock.attendance;

import com.nineclock.attendance.dto.AttendGroupDTO;
import com.nineclock.common.entity.PageResult;
import com.nineclock.common.entity.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestParam;

@Api(value = "考勤组管理接口", tags = "考勤服务", description="考勤组管理接口")
public interface AttendGroupControllerApi {
    
    @ApiOperation("考勤组: 分页查询")
    public Result<PageResult<AttendGroupDTO>> queryAttendGroupPage(@RequestParam(value = "page", defaultValue = "1") Integer page ,@RequestParam(value = "pageSize" ,defaultValue = "10") Integer pageSize);

    @ApiOperation("考勤组: 添加")
    public Result addAttendGroup(AttendGroupDTO attendGroupDTO);

    @ApiOperation("考勤组: 获取当前登录用户考勤组")
    public Result<AttendGroupDTO> getAttendGroupByUserId();

}